<?

include_once('lib/combat.php');
include('custom/charactertabs.php');

$actor = 'You';

if (sizeof($this->history) == 0)
  print('<b style="color: gray">Your character has not done anything yet.</b>');
else
{
  ?><ul><?
  foreach($this->history as $h)
  {
    ?><li><?
    switch($h['h_type'])
    {
      case('kill'): {
        $verb = getAttackVerb('death');
        print($actor.' '.$verb[0].' <b>'.$h['h_count'].' '.makePlural($h['c_name'], $h['h_count']).'</b> '.$verb[1]);
        break;
      }
      case('defeat'): {
        print('<span class="player_died_text">You were defeated <b>'.$h['h_count'].'</b> '.makePlural('time', $h['h_count']).'.</span>');
        break;
      }
      case('duelcountd'): {
        print('<span class="player_died_text">You were defeated in duel <b>'.$h['h_count'].'</b> '.makePlural('time', $h['h_count']).'.</span>');
        break;
      }
      case('duelcountv'): {
        print('<span>You were victorious in duel <b>'.$h['h_count'].'</b> '.makePlural('time', $h['h_count']).'.</span>');
        break;
      }
      case('zone'): {
        print('<span>You visited <b>'.$h['z_name'].'</b>');
        break;
      }
      default: {
        print('<span class="quest_done_text"><b>'.actorTextStory($h['h_text']).'</b></span>');
        break;
      }
    
    }
    ?></li><?  
  }
  ?></ul><?
}
?>